home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / Q-R / ResTools.cpt / ResTools / ResTools 1.1.rsrc / HTXT_6_User Defined Resources_ < prev    next >
Encoding:
Text File  |  1987-06-05  |  439 b   |  16 lines

  1. Arbitrary resources can also be defined. They use a syntax similiar to the
  2. following example. The data of the resource requires that you define a series
  3. of data types followed by their contents. 
  4.  
  5.  userdefined resource 'MUDB' (134)
  6. {
  7.     pstring:     "this is a pascal string";
  8.     cstring:     "this is a c string";
  9.     string:    "C String without trailing null";
  10.     integer:     1;
  11.     long:         2;
  12.     byte:         3;
  13.     point:     { 23, 145};
  14.     rectangle:    {1,34,56,78};
  15. };
  16.